.collaborative-disposal {
  box-sizing: border-box;
  font-family: 'YouSheBiaoTiHei', 'AzonixRegular', 'SourceHanSansSC', 'DINAlternate', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  .title-wrap{
    width: 100%;
    background-size: 100% 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 15px 0;
    margin-bottom: 3px;

    .title-str{
      display: flex;
      align-items: center;
      position: relative;
      height: 30px;
      overflow: hidden;
      //border: 1px solid red;
      padding-top: 3px;
      .title, .sen-title {
        font-size: 24px;
        font-weight: bold;
        background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 40%, #0077ef 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        box-sizing: border-box;
        transition: all 0.3s ease;
      }
      .sen-title{
        position: absolute;
        bottom: -16px;
        opacity: 0.2;
        display: inline-block; /* 使 transform 属性有效 */
        transform: scaleY(-1); /* 镜像效果，水平翻转 */
      }
      .title:hover {
        transform: scale(1.02);
      }
      .subtitle {
        box-sizing: border-box;
        transition: all 0.3s ease;
        color: rgba(255,255,255,0.5);
        margin-left: 15px;
        font-family: AzonixRegular;
        text-transform: uppercase;
        font-size: 14px;
      }
      .subtitle:hover {
        opacity: 0.6 !important;
      }
    }
    .tab-selector {
      display: flex;
      justify-content: center;
      font-family: 'SourceHanSansSC';
      .tab-item {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 70px;
        height: 30px;
        border: 1px solid #3A4E74;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 14px;
      }
      .tab-item:first-child{
        border-radius: 4px 0 0 4px;
        border-right: none;
      }
      .tab-item:last-child{
        border-radius: 0 4px 4px 0;
        border-left: none;
      }
      .isActive{
        color: rgba(255,255,255,1);
        border: 2px solid rgb(65, 136, 206) !important;
        background: linear-gradient(to bottom, rgba(58,78,116, 1), rgb(22, 97, 191) 80%);
      }
      .unActive{
        border: 1px solid #3A4E74 !important;
        background: rgba(5, 18, 34, 0.20);
        color: rgba(255,255,255,0.9);
      }
    }
  }
  .content-wrap{
    height: calc(100% - 62px);
    width: calc(100% - 10px);
    background: linear-gradient( 180deg, rgba(20,25,31,0.6) 0%, rgba(60,66,73,0.6) 100%), linear-gradient( 178deg, rgba(9,11,13,0) 0%, #26394D 100%), radial-gradient( 185% 43% at 53% -3%, rgba(166,213,255,0.5) 0%, rgba(166,209,255,0) 24%, rgba(179,212,255,0) 100%);
    border: 1px solid rgba(77,89,102,0.25);
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    .content-item{
      width: calc(100% / 3);
      height: calc(100% / 3);
      padding: 15px;
      box-sizing: border-box;
      font-family: 'SourceHanSansSC';
      display: flex;
      align-items: center;
      justify-content: start;
      .item-left{
        color: rgba(255,255,255,0.8);
        font-size: 11px;
        .left-str{
          color: #43AAFF;
        }
      }
      .value{
        margin-left: 15px;
        font-family: 'DINAlternate';
        font-weight: bold;
        font-size: 19px;
        background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 3%, #81C6FF 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        display: flex;
        align-items: end;
      }
    }
  }
  .bottom-line{
    border: 2px solid;
    border-image: linear-gradient(225deg, rgba(117, 170, 202, 0), rgba(255, 255, 255, 1), rgba(255, 255, 255, 1), rgba(117, 170, 202, 0)) 2 2;
  }

  &__header {
    box-sizing: border-box;
    transition: all 0.3s ease;
  }

  &__title-container {
    box-sizing: border-box;
    transition: all 0.3s ease;
  }

  &__title {
    box-sizing: border-box;
    transition: all 0.3s ease;
    animation: titleGlow 2s ease-in-out infinite alternate;

    .collaborative-disposal:hover & {
      transform: scale(1.02);
    }
  }

  &__subtitle {
    box-sizing: border-box;
    transition: all 0.3s ease;

    .collaborative-disposal:hover & {
      opacity: 0.6 !important;
    }
  }

  &__time-selector {
    box-sizing: border-box;
    transition: all 0.3s ease;

    &:hover {
      background: rgba(5, 18, 34, 0.4) !important;
      border-color: #56A5FF !important;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(86, 165, 255, 0.3);
    }

    &:active {
      transform: translateY(0);
    }
  }

  &__time-selector-icon {
    box-sizing: border-box;
    transition: all 0.3s ease;

    .collaborative-disposal__time-selector:hover & {
      opacity: 0.5;
      transform: scale(1.05);
    }
  }

  &__time-selector-text {
    box-sizing: border-box;
    transition: all 0.3s ease;

    .collaborative-disposal__time-selector:hover & {
      color: #FFFFFF !important;
      text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
  }

  &__departments {
    box-sizing: border-box;
    transition: all 0.3s ease;
  }

  &__department-card {
    box-sizing: border-box;
    transition: all 0.3s ease;
    border-radius: 6px;
    background: rgba(26, 215, 255, 0.05);
    border: 1px solid rgba(26, 215, 255, 0.1);

    &:hover {
      background: rgba(26, 215, 255, 0.1);
      border-color: rgba(26, 215, 255, 0.3);
      transform: translateY(-3px);
      box-shadow: 0 6px 16px rgba(26, 215, 255, 0.2);
    }

    &:active {
      transform: translateY(-1px);
    }
  }

  &__department {
    box-sizing: border-box;
    transition: all 0.3s ease;

    .collaborative-disposal__department-card:hover & {
      color: #1AD7FF !important;
      text-shadow: 0 0 5px rgba(26, 215, 255, 0.5);
    }
  }

  &__task {
    box-sizing: border-box;
    transition: all 0.3s ease;

    .collaborative-disposal__department-card:hover & {
      color: #56A5FF !important;
      transform: scale(1.05);
    }
  }

  &__count-container {
    box-sizing: border-box;
    transition: all 0.3s ease;
  }

  &__count {
    box-sizing: border-box;
    transition: all 0.3s ease;
    animation: countGlow 2s ease-in-out infinite alternate;

    .collaborative-disposal__department-card:hover & {
      transform: scale(1.1);
      animation: countPulse 0.5s ease-in-out;
    }
  }

  &__unit {
    box-sizing: border-box;
    transition: all 0.3s ease;

    .collaborative-disposal__department-card:hover & {
      color: #1AD7FF !important;
      text-shadow: 0 0 3px rgba(26, 215, 255, 0.5);
    }
  }

  // 标题发光动画
  @keyframes titleGlow {
    from {
      text-shadow: 0px 1px 8px rgba(0,15,13,0.66);
    }
    to {
      text-shadow: 0px 1px 12px rgba(72,153,255,0.8), 0px 2px 16px rgba(72,153,255,0.6);
    }
  }

  // 数值发光动画
  @keyframes countGlow {
    from {
      text-shadow: 0 0 5px rgba(26, 215, 255, 0.5);
    }
    to {
      text-shadow: 0 0 10px rgba(26, 215, 255, 0.8), 0 0 15px rgba(26, 215, 255, 0.6);
    }
  }

  // 数值脉冲动画
  @keyframes countPulse {
    0% {
      transform: scale(1.1);
    }
    50% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1.1);
    }
  }

  // 卡片进入动画
  &__department-card {
    animation: slideInUp 0.5s ease-out;
    animation-fill-mode: both;

    @for $i from 1 through 12 {
      &:nth-child(#{$i}) {
        animation-delay: #{$i * 0.05}s;
      }
    }
  }

  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  // 时间选择器图标旋转动画
  &__time-selector-icon {
    .collaborative-disposal__time-selector:hover & {
      animation: iconRotate 2s ease-in-out infinite;
    }
  }

  @keyframes iconRotate {
    0% {
      transform: scale(1.05) rotate(0deg);
    }
    25% {
      transform: scale(1.05) rotate(3deg);
    }
    75% {
      transform: scale(1.05) rotate(-3deg);
    }
    100% {
      transform: scale(1.05) rotate(0deg);
    }
  }

  // 任务名称闪烁动画
  &__task {
    .collaborative-disposal__department-card:hover & {
      animation: taskBlink 1s ease-in-out;
    }
  }

  @keyframes taskBlink {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0.7;
    }
  }

  // 响应式设计
  @media (max-width: 768px) {
    padding: 15px;

    &__header {
      flex-direction: column;
      gap: 15px;
      align-items: center;
    }

    &__title-container {
      align-items: center;
    }

    &__title {
      font-size: 20px !important;
      line-height: 20px !important;
    }

    &__subtitle {
      font-size: 12px !important;
      line-height: 12px !important;
    }

    &__time-selector {
      width: 70px !important;
      height: 28px !important;
    }

    &__time-selector-text {
      font-size: 14px !important;
      line-height: 20px !important;
    }

    &__department-card {
      padding: 8px;
      height: 70px !important;
    }

    &__department {
      font-size: 12px !important;
      line-height: 20px !important;
    }

    &__task {
      font-size: 12px !important;
      line-height: 16px !important;
    }

    &__count {
      font-size: 20px !important;
      line-height: 24px !important;
    }

    &__unit {
      font-size: 14px !important;
      line-height: 18px !important;
    }
  }
  @media screen and (max-width: 1920px) {
    transform: scale(0.4862); // 1920/3952 ≈ 0.4862
    transform-origin: top left;
  }

  @media screen and (max-width: 1080px) {
    transform: scale(0.2733); // 1080/3952 ≈ 0.2733
    transform-origin: top left;
  }

  @media screen and (min-width: 5120px) {
    transform: scale(1.7778); // 5120/3952 ≈ 1.2955
    transform-origin: top left;
  }

  // 网格布局优化
  &.collaborative-disposal--grid {
    .collaborative-disposal__department-card {
      justify-self: center;
      align-self: center;
    }
  }

  // 弹性布局优化
  &.collaborative-disposal--flex {
    .collaborative-disposal__department-card {
      flex: 1;
      min-width: 0;
    }
  }
}
